package com.vivi.feverdiagnose;

import com.vivi.feverdiagnose.db.DataSource;
import com.vivi.feverdiagnose.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;

public class MainMenu extends Activity {
	private DataSource mDataSource;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu);
		
		mDataSource = new DataSource(getApplicationContext());
        mDataSource.open();
        
        //mDataSource.insertPenyakit("1", "flu", "pergi ke dokter");
        //mDataSource.insertPenyakit("2", "batuk", "minum obat");
	}

	public void onButtonClicker(View v) {
		Intent intent;

		switch (v.getId()) {
		case R.id.btnLogin:
			intent = new Intent(this, LoginPakar.class);
			startActivity(intent);
			break;
		case R.id.btnDiagnose:
			intent = new Intent(this, UserDiagnose.class);
			startActivity(intent);
			break;
		}
	}
}
